package operation;

import book.Book;
import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dings
 * Date: 2024-05-13
 * Time: 17:21
 */
public class ShowBook implements IOperation{
    @Override
    public void work(BookList bookList) {
        int currentNum = bookList.getBookNumber();
        System.out.println("***************展示书籍***************");
        for (int i = 0; i < currentNum; i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
        System.out.println("***************展示书籍***************");
    }
}
